<%@ page import="com.webtest.javabeantest.Customer" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 2018/8/9
  Time: 14:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Tag</title>
</head>
<body>
<%
    //模拟Servlet中的操作
    List<Customer> customers = new ArrayList<>();
    customers.add(new Customer(1, "AA", 12));
    customers.add(new Customer(2, "BB", 13));
    customers.add(new Customer(3, "CC", 14));
    customers.add(new Customer(4, "DD", 15));
    customers.add(new Customer(5, "EE", 16));
    customers.add(new Customer(6, "FF", 17));

    request.setAttribute("customers",customers);
%>

<jsp:forward page="testtag.jsp"/>

</body>
</html>
